package com.atfzr.mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 望夜
 * @date 2022/12/3---16:07
 * @SuppressWarnings({"all"})
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    private Long id;
    private String name;
    private Integer price;
    @Version  // 标识乐观锁版本号字段
    private Integer version;
}
